package thss.mro.util;
/**
 * 常量
 */
public class Constants {

	/*
	 * 协议端口
	 */
	public final static int PROTOCOL_PORT_SCP = 1; // 三一
	public final static int PROTOCOL_PORT_SCPCELL = 2; // 三一信元
	public final static int PROTOCOL_PORT_AIRCHINA = 3; // 国航
	
	/*
	 * 协议名称
	 */
	public final static String PROTOCOL_NAME_SCP = "SCP";// 三一
	public final static String PROTOCOL_NAME_SCPCELL = "SCPCELL";// 三一信元
	public final static String PROTOCOL_NAME_AIRCHINA = "AIRCHINA"; // 国航
	
	/*
	 * 模板名称
	 */
	public final static String TEMPLATE_ID_SCP_HEAD = "SCPHead";
	public final static String TEMPLATE_ID_SCP_BODY = "SCPBody";
	public final static String TEMPLATE_ID_SCPCELL_HEAD = "SCPCellHead";
	public final static String TEMPLATE_ID_SCPCELL_BODY = "SCPCellBody_";
	/*
	 * 协议字段类型常量
	 */
	public final static int PROTOCOL_FIELD_TYPE_CHAR = 1;
	public final static int PROTOCOL_FIELD_TYPE_BYTE = 2;
	public final static int PROTOCOL_FIELD_TYPE_BIT = 3;
	public final static int PROTOCOL_FIELD_TYPE_INT = 4;
//	public final static int PROTOCOL_FIELD_TYPE_CELL = 4;
	
	/*
	 * 协议类型
	 */
//	public final static int PROTOCOL_TYPE_SCP = 1;
//	public final static int PROTOCOL_TYPE_CELL = 2;
	
	/*
	 * 协议值的单位类型
	 */
	public final static int PROTOCOL_VALUE_TYPE_BYTE = 1;
	public final static int PROTOCOL_VALUE_TYPE_BIT = 2;
	
	/*
	 * 字段的动态属性类型
	 */
	public final static int FIELD_DYNAMICATTRS_TYEP_RANGE = 1;
	
	
	
}
